export default class DistanceUtil {

    static km(distance) {
        var length = distance.length;
        console.log('distance', distance);
        console.log('length', length);
        if (length > 3) {
            return distance.substring(0, length - 3) + 'km';
        }
        if (length <= 3) {
            return distance + 'm';
        }
    }

}